<!-- 库区管理 -->
<template>
  <div>
    <TableBar :table-data="areaList" :header-list="headList" :state="type" :params="params" />
  </div>
</template>

<script>
import { getArea } from '@/api/warehouse'
export default {
  data() {
    return {
      areaList: [],
      params: {
        page: 1,
        size: 10
      },
      type: ['仓库编号', '仓库名称', '仓库状态'],
      headList: [
        // {
        //   // type: 'index',
        //   label: '序号',
        //   prop: 'ascs'
        // },
        {
          label: '所属仓库',
          prop: 'logicDel'
        },
        {
          label: '库区编号',
          prop: 'code'
        },
        {
          label: '库区名称',
          prop: 'name'
        },
        {
          label: '温度类型',
          prop: 'temperatureType'
        },
        {
          label: '承重类型',
          prop: 'bearingType'
        },
        {
          label: '用途属性',
          prop: 'useType'
        },
        {
          label: '库区状态',
          prop: 'status'
        },
        {
          label: '负责人',
          prop: 'personName'
        },
        {
          label: '联系电话',
          prop: 'phone'
        },
        {
          label: '库位数量',
          prop: 'includedNum'
        },
        {
          label: '更新时间',
          prop: 'updateTime'
        }
      ]
    }
  },
  async created() {
    const { data } = await getArea()
    console.log(data)
    this.areaList = data.data
    console.log(this.areaList)
  }
}

</script>
<style lang='less' scoped>
</style>
